<!DOCTYPE HTML>
<html>
    <head>
        <title>51淘城-商城管理</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/main.scss'}">
        #{get 'moreStyles' /}
        <link rel="shortcut icon" type="image/png" href="@{'/public/images/favicon.png'}">
        <script src="@{'/public/javascripts/jquery-1.4.2.min.js'}" type="text/javascript" charset="utf-8"></script>
        #{get 'moreScripts' /}
    </head>
    <style>
	#header {
		font-size:2.8em;
		font-weight:bold;
		padding:20px;
		text-align:center;
	}
	</style>
    <body>
	    <div id="accountnav">
			<div class="left-wrap">
				<p id="account-info">
				#{if session.admin}
					您好，欢迎 <span class="important_1">${session.admin}</span> 光临。
				#{/if}
				#{else}
					您好，欢迎光临！ 
					<a href="/login"class="important_1">请登录</a> 或 <a href="/register" class="important_1">免费注册</a> </p>
				#{/else}
			</div>
			<div class="right-wrap">
				<ul>
					#{if session.admin}
					<div class="messageBlock" style="display:none;"><a href="/users/message" >新消息(<font class="important_1 messageCount">0</font>)条</a></div>
					&nbsp;&nbsp;&nbsp;
					<a href="/logout" class="important_1">退出登录</a>
					#{/if}
				</ul>		
			</div>
		</div>
    	<div id="header">
    		<span>51淘城管理系统</span>
		</div>
        <div id="content" class="center clear">
        	#{doLayout /}
        </div>
    </body>
</html>